package pers.liyan.shi.springbootdynamictable.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 用于配置自动打开chrome浏览器的参数
 *
 * @author shily
 * @date 2019/6/21 14:13
 */
@ConfigurationProperties(prefix = "chrome")
public class ChromeProperties {

    /**
     * 是否自动打开
     */
    private boolean open = false;

    /**
     * 打开url
     */
    private String url;

    /**
     * chrome可执行文件路径
     */
    private String chromeExcutePath = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe";

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getChromeExcutePath() {
        return chromeExcutePath;
    }

    public void setChromeExcutePath(String chromeExcutePath) {
        this.chromeExcutePath = chromeExcutePath;
    }

    @Override
    public String toString() {
        return "ChromeProperties{" +
                "open=" + open +
                ", url='" + url + '\'' +
                ", chromeExcutePath='" + chromeExcutePath + '\'' +
                '}';
    }
}
